<div class="forms">
<form method="post" action="/test.html" enctype="multipart/form-data" name="advert">
<input type="hidden" id="region" name="region" value="1"/>
<input type="hidden" id="category" name="category" value="1"/>
<input type="hidden" id="section" name="section" value="1"/>
						<div class="level1">
							<span class="fieldset grey contactinfo margined">
								<span class="legend blue">Контактная информация клиента</span>
								<span class="notification">Сведения недоступны пользователям</span>
								<span class="userinfo">
									<span class="usertype">
										<img src="/templates/images/online.png" />
										<a href="#"><img src="/templates/images/envelope.png" /></a>
										<span class="type">Клиент</span>
									</span>
									<span class="username"><a href="#">Арнольд Шварцнегер</a></span>
                                    <span class="remaindcall"><a href="#"><img src="/templates/images/remaindcall.png" /></a></span>
								</span>
                                <span class="tels">
									<span class="telitem">
                                    	<span class="telcode">(998 71)</span>
                                        <span class="tel">345-56-34</span>
                                    </span>
									<span class="telitem">
                                    	<span class="telcode">(998 71)</span>
                                        <span class="tel">345-56-34</span>
                                    </span>
									<span class="telitem">
                                    	<span class="telcode">(998 71)</span>
                                        <span class="tel">345-56-34</span>
                                    </span>
									<span class="telitem">
                                    	<span class="telcode">(998 71)</span>
                                        <span class="tel">345-56-34</span>
                                    </span>
								</span>
                                <span class="saveblock">
                                	<span class="greybutton"><a href="#">Редактировать контакты</a></span>
                                </span>
								<input type="hidden" id="client_id" name="client_id" value="1"/>
							</span>
							<span class="fieldset grey visibility margined">
								<span class="legend blue">Видимость объявления в риэлторской части сайта</span>
								<span class="viewtypes">
                                	<span class="viewall">- открыто всем</span>
                                    <span class="viewpartner">- открыто партнерам</span>
                                    <span class="viewnone">- скрыто от всех</span>
                                </span>
                                <input type="hidden" id="vision_mode" name="vision_mode" value="0"/>
							</span>
							<span class="fieldset grey status">
								<span class="legend blue">Статус объекта</span>
                                <span class="statustypes">
                                	<span class="insale">- в продаже</span>
                                    <span class="holded">- приостановлено</span>
                                </span>
                                <input type="hidden" id="object_status" name="object_status" value="0"/>
							</span>
						</div>
						<div class="level2">
							<span class="leftcolumn">
								<span class="fieldset orange location">
									<span class="legend orange">Местоположение</span>
                                    <span class="inputcontainer">
                                        <span class="straight">
                                            <label class="required">Район <span>*</span></label>
                                            <select name="district">
                                                <option value="">Выбрать</option>
                                            </select>
                                        </span>
                                        <span class="straight">
                                            <label>Метро</label>
                                            <select name="subway">
                                                <option value="">Выбрать</option>
                                            </select>
                                        </span>
                                        <span class="straight">
                                            <label>Удаленность, мин.</label>
                                            <select name="remoteness">
                                                <option value="">Выбрать</option>
                                            </select>
                                        </span>
                                        <span class="straight">
                                            <label>Массив</label>
                                            <select name="area">
                                                <option value="">Выбрать</option>
                                            </select>
                                        </span>
                                        <span class="straight">
                                            <label>Квартал</label>
                                            <select name="block">
                                                <option value="">Выбрать</option>
                                            </select>
                                        </span>
                                        <span class="straight">
                                            <label>Улица</label>
                                            <select name="street">
                                                <option value="">Выбрать</option>
                                            </select>
                                        </span>
                                        <span class="straight">
                                            <label>Ориентир</label>
                                            <textarea name="refpoint"></textarea>
                                        </span>
                                    </span>
								</span>
								<span class="mfieldset orange basic" style="">
									<span class="legend orange">Основное</span>
                                    <span class="inputcontainer">
                                        <span class="straight">
                                            <label class="required">Количество комнат <span>*</span></label>
                                            <select name="room_count">
                                                <option value="">Выбрать</option>
                                            </select>
                                        </span>
                                        <span class="straight">
                                            <label>Перепланирован</label>
                                            <select name="replaned">
                                                <option value="">Выбрать</option>
                                            </select>
                                        </span>
                                        <span class="straight">
                                            <label>Плюсовой вариант</label>
                                            <select name="plus_variant">
                                                <option value="">Выбрать</option>
                                            </select>
                                        </span>
                                        <span class="straight">
                                            <label class="required">Этаж <span>*</span></label>
                                            <select name="floor">
                                                <option value="">Выбрать</option>
                                            </select>
                                        </span>
                                        <span class="straight">
                                            <label class="required">Этажность дома <span>*</span></label>
                                            <select name="floor_count">
                                                <option value="">Выбрать</option>
                                            </select>
                                        </span>
                                        <span class="straight">
                                            <label class="required">Общая площадь (м2) <span>*</span></label>
                                            <input type="text" name="common_square"/>
                                        </span>
                                        <span class="straight">
                                            <label class="required">Балкон (м2) <span>*</span></label>
                                            <select name="balcony">
                                                <option value="">Выбрать</option>
                                            </select>
                                        </span>
                                        <span class="straight">
                                            <label>Материал</label>
                                            <select name="material">
                                                <option value="">Выбрать</option>
                                            </select>
                                        </span>
                                        <span class="straight">
                                            <label>Состояние</label>
                                            <select name="state">
                                                <option value="">Выбрать</option>
                                            </select>
                                        </span>
                                        <span class="straight">
                                            <label>Раздельность комнат</label>
                                            <select name="room_separateness">
                                                <option value="">Выбрать</option>
                                            </select>
                                        </span>
                                    </span>
								</span>
								<span class="mfieldset orange additional1">
									<span class="legend orange">Дополнительно</span>
                                    <span class="inputcontainer">
                                        <span class="straight">
                                            <label>Раздел. сан/ узлов</label>
                                            <select name="bath_separateness">
                                                <option value="">Выбрать</option>
                                            </select>
                                        </span>
                                        <span class="straight">
                                            <label>Торец</label>
                                            <select name="butt">
                                                <option value="">Выбрать</option>
                                            </select>
                                        </span>
                                        <span class="straight">
                                            <label>Дверь</label>
                                            <select name="door">
                                                <option value="">Выбрать</option>
                                            </select>
                                        </span>
                                        <span class="straight">
                                            <label>Телефон</label>
                                            <select name="telephone">
                                                <option value="">Выбрать</option>
                                            </select>
                                        </span>
                                        <span class="straight">
                                            <label>Полы</label>
                                            <select name="floors">
                                                <option value="">Выбрать</option>
                                            </select>
                                        </span>
                                        <span class="straight">
                                            <label>Отопление</label>
                                            <select name="heating">
                                                <option value="">Выбрать</option>
                                            </select>
                                        </span>
                                        <span class="straight">
                                            <label>Горячая вода</label>
                                            <select name="hot_water">
                                                <option value="">Выбрать</option>
                                            </select>
                                        </span>
                                    </span>
								</span>
							</span>
							<span class="rightcolumn">
								<span class="fieldset orange additional2">
									<span class="legend orange">Дополнительно</span>
                                    <span class="inputcontainer">
                                        <span class="straight">
                                            <label>Высота потолков</label>
                                            <select name="ceiling_height">
                                                <option value="">Выбрать</option>
                                            </select>
                                        </span>
                                        <span class="straight">
                                            <label>Расположение дома</label>
                                            <select name="disposition">
                                                <option value="">Выбрать</option>
                                            </select>
                                        </span>
                                        <span class="cascade">
                                            <label class="bluefont">Заголовок объявления</label>
                                            <textarea name="title"></textarea>
                                        </span>
                                        <span class="cascade orangeinput">
                                            <label>Общее описание</label>
                                            <textarea name="description"></textarea>
                                        </span>
                                    </span>
								</span>
								<span class="mfieldset orange cost">
									<span class="legend red">Самое важное</span>
                                    <span class="inputcontainer">
                                        <span class="straight">
                                            <label>Цена</label>
                                            <select name="currency">
                                                <option value="">у.е.</option>
                                            </select>
                                            <input type="text" name="price" />
                                        </span>
                                    </span>
								</span>
								<script>
											
											var myWindow;
											var imageInputs;
											function openCenteredWindow(url) {
												var width = 400;
												var height = 300;
												var left = parseInt((screen.availWidth/2) - (width/2));
												var top = parseInt((screen.availHeight/2) - (height/2));
												var windowFeatures = "width=" + width + ",height=" + height + 
													",status,resizable=no,left=" + left + ",top=" + top + 
													",screenX=" + left + ",screenY=" + top;
												myWindow = window.open(url, "subWind", windowFeatures);
												myWindow.onload = function()
												{
													var nelem = document.getElementById('images').cloneNode(true);
													for (var i = 0; i < nelem.getElementsByTagName('textarea').length; i++)
														nelem.getElementsByTagName('textarea')[i].value = 
															document.getElementById('images').getElementsByTagName('textarea')[i].value;
													myWindow.document.getElementById('cont').appendChild(nelem);
													myWindow.document.images.submit();
												} 
												
											}
											
											function addImageFields()
											{
												if (!imageInputs)
												{
													imageInputs = document.getElementById('images').cloneNode(true);
												}
												
												var tmp = imageInputs.cloneNode(true);
												document.getElementById('images').appendChild(tmp);
												
											}


										</script>
								<span class="mfieldset orange photo">
									<span class="legend orange">Фотографии</span>
									<span class="inputcontainer">
                                    	<span class="title">
                                        	Поддерживаемые форматы фото : jpg., gif., png.<br />
											Максимальный размер файла 1 Мб
                                        </span>
										<span id="images">
											<span class="straight">
												<label>Фото</label>
                                                <input type="hidden" name="MAX_FILE_SIZE" value="300000" />
												<input type="file" size="25" name="src[]"/>
											</span>
											<span class="straight">
												<label>Описание</label>
												<textarea id="txt[]" name="image_descripton"></textarea>
											</span>
										</span>
                                        <span class="addpanel">
                                        	<span class="morephoto"><a href="#" onclick="addImageFields(); return false;">Еще фото</a></span>
                                            <span class="uploadphoto">
												<a href="#" onclick="openCenteredWindow('/image/add'); return false;">
													<span></span>
												</a>
											</span>
                                        </span>
                                        <span class="checkbox">
                                        	<input name="avatar_for_main" id="avatar_for_main" type="checkbox"  />
                                            <label for="avatar_for_main">Аватар вместо главного фото объявления</label>
                                        </span>
                                        <span class="straight">
                                            <label>План</label>
                                            <input type="hidden" name="MAX_FILE_SIZE" value="300000" />
                                            <input type="file" size="25" name="src"/>
                                        </span>
                                        <span class="straight">
                                            <label>Описание</label>
                                            <textarea name="image_descripton"></textarea>
                                        </span>
                                        <span class="addpanel">
                                        	<span class="morephoto"><a href="#">Еще фото</a></span>
                                            <span class="uploadphoto"><a href="#"><span>&nbsp;</span></a></span>
                                        </span>
                                        <span class="checkbox">
                                        	<input name="plan_for_main" id="plan_for_main" type="checkbox"  />
                                            <label for="plan_for_main">План вместо главного фото объявления</label>
                                        </span>
                                    </span>
								</span>
								<span class="mfieldset orange geography">
									<span class="legend orange">География</span>
                                    <span class="inputcontainer">
                                    	<span class="title">Разместить объект на карте <span class="asterisk">*</span></span>
                                        <span class="region">г. Ташкент</span>
                                        <span class="map"><a href="#"><span></span></a></span>
                                        <span class="loadmap"><a href="#"><span></span></a></span>
										<input name="on_map" id="on_map" type="hidden" />
                                    </span>
								</span>
							</span>
							<span class="fieldset orange servinfo">
								<span class="legend blue">Служебная информация</span>
                                <span class="inputcontainer">
                                	<span class="top">
                                    	<span class="notification">Сведения недоступны пользователям</span>
                                    </span>
                                    <span class="level1">
                                        <span class="ifieldset iorangebr addressforme">
                                            <span class="legend iorangebg">Точный адрес</span>
                                            <textarea name="address"></textarea>
                                        </span>
                                        <span class="ifieldset iorangebr noticesforme">
                                            <span class="legend iorangebg">Заметки для себя</span>
                                            <textarea name="notice_for_me"></textarea>
                                        </span>
                                        <span class="ifieldset iorangebr noticesforpartn">
                                            <span class="legend iorangebg">Заметки для партнеров</span>
                                            <textarea name="notice_for_partners"></textarea>
                                        </span>
                                    </span>
                                    <span class="level2">
                                        <span class="ifieldset iorangebr locationforme">
                                            <span class="legend iorangebg">Местоположение</span>
                                            <span class="inputcontainer">
                                                <span class="straight">
                                                    <label>Округ</label>
                                                    <select name="division">
                                                        <option value="">Выбрать</option>
                                                    </select>
                                                </span>
                                            </span>
                                        </span>
                                        <span class="ifieldset iorangebr infosource">
                                            <span class="legend iorangebg">Источник информации по объявлению</span>
                                            <span class="inputcontainer">
                                            	<span class="uneditable">Нередактируемое</span>
                                                <span class="straight">
                                                    <select name="source">
                                                        <option value="">Выбрать</option>
                                                    </select>
                                                </span>
                                            </span>
                                        </span>
                                        <span class="ifieldset iorangebr responsibleagent">
                                            <span class="legend iorangebg">Ответственный агент</span>
                                            <span class="inputcontainer">
                                            	<span class="curagent">
                                                	<span class="title">Агент:</span>
                                                    <span class="agentname">Кудимова Марина</span>
                                                </span>
                                                <span class="reassignagent"><a href="/templates/images/reassignagent.png"><span></span></a></span>
												<input type="hidden" id="responsible" name="responsible"/>
                                            </span>
                                        </span>
                                    </span>
                                    <span class="level3">
                                        <span class="ifieldset iorangebr trustagent">
                                            <span class="legend iorangebg">Доверенные агенты</span>
                                            <span class="inputcontainer">
                                            	<span class="title">Минимальное количество доверенных агентов:1</span>
                                                <span class="straight">
                                                    <label>Агент</label>
                                                    <select id="ensured" name="ensured" size="4">
                                                        <option value="">Выбрать</option>
                                                    </select>
                                                </span>
                                                
                                            </span>
                                        </span>
                                        <span class="ifieldset iorangebr commitedagent">
                                            <span class="legend iorangebg">Договор поручен агенту</span>
                                            <span class="inputcontainer">
                                            	<span class="curagent">
                                                	<span class="title">Агент:</span>
                                                    <span class="agentname">Кудимова Марина</span>
                                                </span>
                                                <span class="reassignagent"><a href="/templates/images/changeagent.png"><span></span></a></span>
												<input type="hidden" id="entrusted" name="entrusted"/>
                                            </span>
                                        </span>
                                        <span class="ifieldset iorangebr treatytype">
                                            <span class="legend iorangebg">Тип договора</span>
                                            <span class="inputcontainer">
                                            	<span class="straight">
                                                    <label>Тип договора</label>
                                                    <select id="treaty_type" name="treaty_type">
                                                        <option value="">Выбрать</option>
                                                    </select>
                                                </span>
                                                
                                            </span>
                                        </span>
                                    </span>
                                    <span class="level4">
                                        <span class="ifieldset iorangebr treatynum">
                                            <span class="legend iorangebg">Номер договора</span>
                                            <span class="inputcontainer">
                                            	<span class="uneditable">Нередактируемое</span>
                                                <span class="straight">
                                                    <label>№ договора</label>
                                                    <select id="treaty_num" name="treaty_num">
                                                        <option value="">Выбрать</option>
                                                    </select>
                                                </span>
                                            </span>
                                        </span>
                                        <span class="ifieldset iorangebr expdate">
                                            <span class="legend iorangebg">Срок действия договора</span>
                                            <span class="inputcontainer">
                                            	<span class="uneditable">Нередактируемое</span>
                                                <span class="straight">
                                                    <label>Дата заключения</label>
                                                    <select name="cday">
                                                        <option value="">День</option>
                                                    </select>
                                                    <select name="cmonth">
                                                        <option value="">Месяц</option>
                                                    </select>
                                                    <select name="cyear">
                                                        <option value="">Год</option>
                                                    </select>
                                                </span>
                                                <span class="straight">
                                                    <label>Дата окончания</label>
                                                    <select name="eday">
                                                    	<option value="">День</option>
                                                    </select>
                                                    <select name="emonth">
                                                        <option value="">Месяц</option>
                                                    </select>
                                                    <select name="eyear">
                                                        <option value="">Год</option>
                                                    </select>
                                                </span>
                                                <span class="checkbox">
                                                    <input name="undefined_date" id="undefined_date" type="checkbox"  />
                                                    <label for="undefined_date">Договор заключен на неопределенный срок</label>
                                                </span>
                                            </span>
                                        </span>
                                        <span class="ifieldset iorangebr photofrom">
                                            <span class="legend iorangebg">Фото от агента</span>
                                            <span class="inputcontainer">
                                            	<span class="uneditable">Нередактируемое</span>
                                                <span class="straight">
                                                    <label>Агент</label>
                                                    <select id="photographer" name="photographer">
                                                        <option value="">Выбрать</option>
                                                    </select>
                                                </span>
                                            </span>
                                        </span>
                                    </span>
                                </span>
							</span>
							</span>
							<span class="fieldset grey extadvert">
								<span class="legend orange">Реклама в других изданиях (объявление № 345334)</span>
                                <span class="inputcontainer">
                                	<span class="top">
	                                    <span class="title">Добавить издание или способ рекламы</span>
                                        <span class="textarea"><textarea size="20" id="newissue" name="newissue"></textarea></span>
                                        <span class="add"><input type="button" value="Добавить" /></span>
                                    </span>
                                    <span class="restable">
                                    	<span class="tools">
                                        	<span class="openlist"><a href="#">Открыть список</a></span>
                                        </span>
                                        <span class="table">
                                        	<table cellspacing="1" class="itable">
                                            	<tbody>
                                                	<tr>
                                                    	<th class="date">Дата</th>
                                                        <th class="time">Время</th>
                                                        <th class="operator">Оператор</th>
                                                        <th class="place">Место рекламы</th>
                                                        <th class="period">Период рекламирования</th>
                                                        <th class="notice">Примечание</th>
                                                        <th class="edit"></th>
                                                    </tr>
                                                    <tr>
                                                    	<td>
															25.03.2012
															<input type="hidden" name="id" value="0"/>
														</td>
                                                        <td class="time">
															12:25
														</td>
                                                        <td><a href="#">Кудимова Марина</a></td>
                                                        <td>
															Частный сектор
															<input type="hidden" name="issue_id" value="0"/>
														</td>
                                                        <td class="period">
															23.05.2012 - 25.05.2012
															<input type="hidden" name="sdate" value="23.02.2023"/>
															<input type="hidden" name="edate" value="25.05.2023"/>
														</td>
                                                        <td>
															баннерная
															<input type="hidden" name="notice" value="баннерная"/>
														</td>
                                                        <td><a href="#"><span class="pen"></span></a></td>
                                                    </tr>
                                                    <tr>
                                                    	<td>
															25.03.2012
															<input type="hidden" name="id"/>
														</td>
                                                        <td class="time">
															12:25
														</td>
                                                        <td><a href="#">Кудимова Марина</a></td>
                                                        <td>
															Частный сектор
															<input type="hidden" name="issue"/>
														</td>
                                                        <td class="period">
															23.05.2012 - 25.05.2012
															<input type="hidden" name="sdate"/>
															<input type="hidden" name="edate" value="1"/>
														</td>
                                                        <td>
															баннерная
															<input type="hidden" name="adverttype" value="1"/>
														</td>
                                                        <td><a href="#"><span class="pen"></span></a></td>
                                                    </tr>
                                                </tbody>
                                            </table>
                                        </span>
                                    </span>
                                    <span class="extadvertform">
                                    	<span class="issuetype">
                                        	<label class="title">Выбрать издание или способ рекламы</label>
                                        	<span>
                                                <select name="">
                                                    <option value="">Выбрать</option>
                                                </select>
                                            </span>
                                        </span>
                                        <span class="period">
                                        	<label class="title">Период рекламирования</label>
                                        	<span class="plevel1">
                                                <select name="">
                                                    <option value="">День</option>
                                                </select>
                                                <select name="">
                                                    <option value="">Месяц</option>
                                                </select>
                                                <select name="">
                                                    <option value="">Год</option>
                                                </select>
                                            </span>
                                        	<span class="plevel2">
                                                <select name="">
                                                    <option value="">День</option>
                                                </select>
                                                <select name="">
                                                    <option value="">Месяц</option>
                                                </select>
                                                <select name="">
                                                    <option value="">Год</option>
                                                </select>
                                            </span>
                                        </span>
                                        <span class="notice">
                                        	<label class="title">Примечаний для рекламирования</label>
                                        	<textarea></textarea>
                                        </span>
                                    </span>
                                    <span class="button">
                                    	<input type="button" value="Добавить"/>
                                    </span>
                                </span>
							</span>
							<div class="notice">
								<span class="fullness">
									<span class="title">Заполненность анкеты:</span>
									<span class="state">Низкий уровень</span>
								</span>
								<span class="placement">
									<span class="title">Ваше объявление будет размещено на четвертой странице<br/> Для поднятия на первую страницу заполните объявление подробнее</span>
								</span>
								<span class="advert">
									<a href="#" class="title">Рекламировать объявление</a>
								</span>
                                <span class="botcodecont">
                                    <span class="fieldset blue botcode">
                                        <span class="legend blue">Код безопасности</span>
                                        <span class="cont">
                                            <span class="captcha"><img src="/templates/images/captcha.jpg" /></span>
                                            <span class="input">
                                                <input type="text" name="captcha"/>
                                                <span><a href="#">Обновить</a></span>
                                            </span>
                                        </span>
                                    </span>
                                </span>
                                <span class="noticerequired">Поля отмеченные (*) звездочкой,<br /> обязательны для заполнения</span>
                                <span class="button"><input type="submit" value="Добавить объявление" /></span>
							</div>
						</div>
	</form>
	<form  enctype="multipart/form-data" target="" action="/test.php" method="post" name="images" style="display: none;">
	
	</form>
</div>